Mega Code Archive

Categories
1) Android
2) ASP.Net
3) ASP.Net Tutorial
4) C
5) C Tutorial
6) C#
7) C# Book
8) C# by API
9) C# Tutorial
10) C++
11) C++ Tutorial
12) Delphi
13) Flash ActionScript
14) Flex
15) Java
16) Java Book
17) Java by API
18) Java Tutorial
19) JavaScript DHTML
20) JavaScript Reference
21) JavaScript Tutorial
22) MSOfficeExcel 2007 Tutorial
23) MSOfficePowerPoint 2007 Tutorial
24) MSOfficeWord 2007 Tutorial
25) MSSQL
26) MSSQL Tutorial
27) MySQL
28) MySQL Tutorial
29) Oracle PLSQL
30) Oracle PLSQL Tutorial
31) Perl
32) Php
33) PostgreSQL
34) Python
35) Python Tutorial
36) Ruby
37) Silverlight
38) VB.Net
39) VB.Net by API
40) VB.Net Tutorial
41) Visual C++ .NET
42) VisualBasic Script
43) XML
44) XML Tutorial
 
Python Tutorial
1) Buildin Function
2) Buildin Module
3) CGI Web
4) Class
5) Collections
6) Data Type
7) Database
8) Dictionary
9) File
10) Function
11) Introduction
12) List
13) Network
14) Operator
15) Regular Expressions
16) Statement
17) String
18) Thread
19) Tkinker
20) Tuple
21) Windows
22) Wxpython
23) XML
File
1) A file iterator
2) Access Modes for File Objects
3) Accessing Each Word in a File
4) Adding Files to a ZIP File
5) Closing a File
6) Create a subdirectory in our temporary directory
7) Create a test file with two lines and verify that the file has been created by listing the directory again afterward
8) Creating a TAR File
9) Demonstrates reading from a text file
10) Determining the Number of Lines in a File
11) Exception you are anticipating
12) Extracting a File from a TAR File
13) File Read and Display
14) First Python Programs
15) Function that tries to read a file and return its contents
16) Get full path
17) Get the longest line
18) Open a File
19) Listing Directories
20) Listing Directories with glob
21) Module Attributes to Aid in Multi-platform Development
22) Move around within the file using seek()
23) Open a file and save text to it
24) Open a file for reading
25) Open a file for writing
26) Opening a File and check its mode
27) Opening a Nonexistent File
28) Opening and writing to a file
29) Os and os path Modules
30) Os chdir(path) changes the current working directory
31) Os path abspath(path) returns a string version of the absolute path of the path specified
32) Os path module provides exists(path), isdir(path), and isfile(path) to check for the existence of files and directories
33) Print to a file
34) R is the default processing mode
35) Random accesss file
36) Read a file line by line with a while loop
37) Read all lines
38) Read bytes into a buffer
39) Read entire file into a buffer
40) Read line by line
41) Read lines into a buffer
42) Read with index
43) Reading a File
44) Reading a Single Line from a File
45) Reading and printing a file
46) Reading and Writing
47) Reads a plain text file
48) Recursively Deleting Files and Subdirectories
49) Redirecting the Output Stream
50) Remove file if the new name already exists
51) Renaming Files
52) Retrieving Files from a ZIP File
53) Searching for Files Based on Extension
54) Simple Unicode String Example
55) Splitting Pathnames
56) Storing and parsing packed binary data in files
57) Storing and parsing Python objects in files
58) The print file Extension
59) The stat Module
60) Turn file content to list or tuple
61) Use the max() built-in function to get the longest string length
62) Using Iterators with Files
63) Verify that tmp is a valid directory and change to that temporary directory, call the getcwd() method
64) Walking the Directory Tree
65) Working with Directories
66) Write a list to a file
67) Write lines
68) Write(string)
69) Writing to a text file
70) Writing to Files